import { handleActions } from 'redux-actions'
import { SET_PRODUCT } from '../actions/product.action'

const initialState = []

export default handleActions({
  [SET_PRODUCT]: (state, action) => {
    console.log(action, state)
    return action.payload
  }
}, initialState)